package com.auxgroup.smarthome.enterpriseapi.locations;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kevinchen on 2017/3/25.
 */
public class RegionCountBean {
    private String regionCn;
    private String regionEn;
    private int count;
    private double rate;

    private List<CityCountBean> cityCounts;

    public String getRegionCn() {
        return regionCn;
    }

    public void setRegionCn(String regionCn) {
        this.regionCn = regionCn;
    }

    public String getRegionEn() {
        return regionEn;
    }

    public void setRegionEn(String regionEn) {
        this.regionEn = regionEn;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public List<CityCountBean> getCityCounts() {
        return cityCounts;
    }

    public void setCityCounts(List<CityCountBean> cityCounts) {
        this.cityCounts = cityCounts;
    }

    public RegionCountBean() {
        if (cityCounts==null){
            cityCounts = new ArrayList<>();
        }
    }

    public RegionCountBean(String regionCn, String regionEn, int count, double rate) {
        this.regionCn = regionCn;
        this.regionEn = regionEn;
        this.count = count;
        this.rate = rate;
    }

    public void addCitycountBean(CityCountBean cityCountBean){
        if (cityCounts==null){
            cityCounts = new ArrayList<>();
        }
        cityCounts.add(cityCountBean);
    }

}
